package com.ruoyi.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 用户管理对象 user
 * 
 * @author wcc
 * @date 2023-11-15
 */
public class User extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 邮箱 */
    @Excel(name = "邮箱")
    private String email;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 铭牌 */
    @Excel(name = "铭牌")
    private String nameplate;

    /** 信息 */
    @Excel(name = "信息")
    private String information;

    /** 数量 */
    @Excel(name = "数量")
    private Long acNum;

    /** 提交数量 */
    @Excel(name = "提交数量")
    private Long submitNum;

    /** 管理员 */
    @Excel(name = "管理员")
    private Integer isAdmin;

    /** 级别 */
    @Excel(name = "级别")
    private Long level;

    /** 展示 */
    @Excel(name = "展示")
    private Integer isShow;

    /** 邮箱是否公开 */
    @Excel(name = "邮箱是否公开")
    private Integer publicEmail;

    /** 格式化代码 */
    @Excel(name = "格式化代码")
    private Integer preferFormattedCode;

    /** 性别 */
    @Excel(name = "性别")
    private Long sex;

    /** 评级 */
    @Excel(name = "评级")
    private Long rating;

    /** 注册时间 */
    @Excel(name = "注册时间")
    private Long registerTime;

    /** 手机号 */
    @Excel(name = "手机号")
    private String phone;

    /** 学校 */
    @Excel(name = "学校")
    private String school;

    /** 年级 */
    @Excel(name = "年级")
    private String grade;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }
    public void setEmail(String email) 
    {
        this.email = email;
    }

    public String getEmail() 
    {
        return email;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setNameplate(String nameplate) 
    {
        this.nameplate = nameplate;
    }

    public String getNameplate() 
    {
        return nameplate;
    }
    public void setInformation(String information) 
    {
        this.information = information;
    }

    public String getInformation() 
    {
        return information;
    }
    public void setAcNum(Long acNum) 
    {
        this.acNum = acNum;
    }

    public Long getAcNum() 
    {
        return acNum;
    }
    public void setSubmitNum(Long submitNum) 
    {
        this.submitNum = submitNum;
    }

    public Long getSubmitNum() 
    {
        return submitNum;
    }
    public void setIsAdmin(Integer isAdmin) 
    {
        this.isAdmin = isAdmin;
    }

    public Integer getIsAdmin() 
    {
        return isAdmin;
    }
    public void setLevel(Long level) 
    {
        this.level = level;
    }

    public Long getLevel() 
    {
        return level;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }
    public void setPublicEmail(Integer publicEmail) 
    {
        this.publicEmail = publicEmail;
    }

    public Integer getPublicEmail() 
    {
        return publicEmail;
    }
    public void setPreferFormattedCode(Integer preferFormattedCode) 
    {
        this.preferFormattedCode = preferFormattedCode;
    }

    public Integer getPreferFormattedCode() 
    {
        return preferFormattedCode;
    }
    public void setSex(Long sex) 
    {
        this.sex = sex;
    }

    public Long getSex() 
    {
        return sex;
    }
    public void setRating(Long rating) 
    {
        this.rating = rating;
    }

    public Long getRating() 
    {
        return rating;
    }
    public void setRegisterTime(Long registerTime) 
    {
        this.registerTime = registerTime;
    }

    public Long getRegisterTime() 
    {
        return registerTime;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setSchool(String school) 
    {
        this.school = school;
    }

    public String getSchool() 
    {
        return school;
    }
    public void setGrade(String grade) 
    {
        this.grade = grade;
    }

    public String getGrade() 
    {
        return grade;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("username", getUsername())
            .append("email", getEmail())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("nameplate", getNameplate())
            .append("information", getInformation())
            .append("acNum", getAcNum())
            .append("submitNum", getSubmitNum())
            .append("isAdmin", getIsAdmin())
            .append("level", getLevel())
            .append("isShow", getIsShow())
            .append("publicEmail", getPublicEmail())
            .append("preferFormattedCode", getPreferFormattedCode())
            .append("sex", getSex())
            .append("rating", getRating())
            .append("registerTime", getRegisterTime())
            .append("phone", getPhone())
            .append("school", getSchool())
            .append("grade", getGrade())
            .toString();
    }
}
